/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-08-10 22:12:18
 * @LastEditTime: 2019-08-12 21:55:49
 * @LastEditors: Please set LastEditors
 */



 /**
  * @description: 可配置的Connect中间件组件logger
  * @param {type} 
  * @return: 
  */ 
 function setup(format){
     var regexp = /:(\w+)/g
     return function logger(req,res,next){
         var str = format.replace(regexp,function(match,property){
            return rep[property]
         })

         console.log(str)
         next()
     }
 }